home *** CD-ROM | disk | FTP | other *** search
/ BlastDOS / pcANYWHERE 2.0.zip / Disk 1.IMA / INSTALL.INF < prev    next >
INI File  |  1995-08-11  |  16KB  |  609 lines

  1. ; pcANYWHERE install script
  2.  
  3. [InstallVersion]
  4. 3.3
  5.  
  6. [WindowsVersion]
  7. 3.10
  8. "pcANYWHERE for Windows requires"
  9. "Windows version 3.1 or greater."
  10.  
  11. [process]
  12. switch91 = IsWinVerGTE(0320)                ;switch91=TRUE if Win 4.0
  13.  
  14. switch94=Exists(Files10)               ;switch94=TRUE if version 1.0 host files exist
  15. switch93=Exists(Files45)               ;switch93=TRUE if version 4.5 host files exist
  16. switch92=Exists(Files50)               ;switch92=TRUE if version 5.0 host files exist
  17. switch90=Exists(BinFile)               ;switch90=TRUE if ANYWHERE.BIN file exists
  18. switch89=Exists(PcawIni)               ;switch89=TRUE if pcaw.ini exists
  19. switch87=Exists(Files20)               ;switch87=TRUE if version 2.0 host files exist
  20. #ifnot(switch87)                                ;or if NoReg file exists
  21.     switch87=Exists(NoReg)
  22. #endif
  23. switch88=FALSE                         ;switch88=TRUE if any pcAW VCD files exist
  24. switch88=VerifyIni(awvcd)
  25. #ifnot(switch88)
  26.     switch88=VerifyIni(aw_vcd)
  27. #endif
  28. #ifnot(switch88)
  29.     switch88=VerifyIni(aw5vcd)
  30. #endif
  31.  
  32. Bitmaps(pix)                           ;display background bitmap
  33. AllowIntlChars()                       ;allow international characters
  34. backup(pcawinst)                       ;copy install dll to Windows directory
  35.                                        ;setup the file information for copying
  36. SetActiveCopy(PCACopy, install.inf)
  37.  
  38. switch01 = IsRegistered()              ;if not already registered, ask for registration
  39. #ifnot(switch01)
  40.      Registration()
  41.      VersionSearch()                   ;search for existing version
  42. #endif
  43. GetPrevVerSize()                       ;for calculating space required
  44. TargetDrive()                          ;get target drive/path
  45.  
  46. switch86=Exists(Winaw)                 ;switch86=TRUE if WINAW.EXE in target already
  47.  
  48. Backup(SaveEm)                         ;backup system start-up files
  49. messagebox(InformAboutBackup)
  50.  
  51. DisableUtils()
  52. copy()                                  ;copy files
  53. groups()                                ;setup groups
  54. EnableUtils()
  55.  
  56. RemoveFromLoad(RemHost)                ;remove load=winhost from win.ini in case it is old
  57.  
  58. DelFromIni(OldVxDs)                    ;delete old pcAW VxD files in system.ini
  59. AddToIni(AWVXDS)                       ;add new VxDs to system.ini
  60.  
  61. DelFromIni(DelOldSymevent)
  62. AddToIni(SYMEVENT)                            ;add device=symevnt.386 to system.ini
  63.  
  64. switch01 = VerifyIni(CheckNetHeapSize) ;if no NetHeapSize, set it to 24
  65. #ifnot(switch01)
  66.     AddToIni(SetNetHeapSize)
  67. #endif
  68.  
  69. switch01 = VerifyIni(TimeCriticalPresent) ;add TimerCriticalSection=500 if not set in system.ini
  70. #ifnot(switch01)
  71.     AddToIni(TimeCriticalSection)
  72. #endif
  73.  
  74. switch01 = VerifyIni(FindFontSection)    ;add font section to pcaw.ini if not already there
  75. #ifnot(switch01)
  76.     AddToIni(AddFontSection)
  77. #endif
  78.  
  79. #if(switch88)                                        ;if we removed an old pcAW VCD
  80.     switch01 = VerifyIni(VCDExists)            ;restore original one if no other exists
  81.     #ifnot(switch01)                                ;if not,
  82.         switch02 = Exists(VCD386Exists)        ;check if vcd.386 exists
  83.         #if(switch02)
  84.             AddToIni(AddVCD386)              ;yes - use it
  85.         #else
  86.             AddToIni(AddVCD)                        ;no - use *vcd
  87.         #endif
  88.     #endif
  89. #endif
  90. ;------------------------------------------------------------------------------------
  91. ;Restore the original video, keyboard, mouse, and sound drivers if upgrading
  92. ;from a previous version of pcAW
  93. ;------------------------------------------------------------------------------------
  94. switch01 = Exists(PcawIni)             ;check if pcaw.ini exists (it should - we created one)
  95. #if(switch01)
  96.    switch02 = VerifyIni(MouseDriverSaved) ;check if a mouse driver was saved in pcaw.ini
  97.    #if(switch02)
  98.       switch03 = VerifyIni(MouseCheckOld) ;check if a pcAW mouse driver is in system.ini
  99.       #if(switch03)
  100.          CopyIni(MouseRestore)            ;restore original mouse driver
  101.       #endif
  102.    #else                                               ;no driver saved but may be a 4.5 install
  103.       switch03 = VerifyIni(MouseCheckOld) ;check if a pcAW mouse driver is in system.ini
  104.       #if(switch03)
  105.          UpdateIni(MouseRestore1)            ;restore to mouse.drv and hope it's correct
  106.       #endif
  107.    #endif
  108.    switch02 = VerifyIni(KbdDriverSaved)   ;check if a kbd driver was saved in pcaw.ini
  109.    #if(switch02)
  110.       switch03 = VerifyIni(KbdCheckOld)   ;check if a pcAW kbd driver is in system.ini
  111.       #if(switch03)
  112.          CopyIni(KbdRestore)              ;restore original keyboard driver
  113.       #endif
  114.    #endif
  115.    switch02 = VerifyIni(DisplayDriverSaved) ;check if a display driver was saved in pcaw.ini
  116.    #if(switch02)
  117.       switch03 = VerifyIni(DisplayCheckOld) ;check if a pcAW display driver is in system.ini
  118.       #if(switch03)
  119.          CopyIni(DisplayRestore)            ;restore original display driver
  120.       #endif
  121.    #endif
  122.    switch02 = VerifyIni(SoundDriverSaved) ;check if a sound driver was saved in pcaw.ini
  123.    #if(switch02)
  124.       switch03 = VerifyIni(SoundCheckOld) ;check if a pcAW sound driver is in system.ini
  125.       #if(switch03)
  126.          CopyIni(SoundRestore)            ;restore original sound driver
  127.       #endif
  128.    #endif
  129. #endif
  130.  
  131. ;Create [oldfiles] section in pcaw.ini and list files that the main program should
  132. ;delete the first time it is run.
  133. AddToIni(Oldfiles)
  134. #if(switch94)
  135.     AddToIni(DelOld10)
  136. #endif
  137. #if(switch93)
  138.     AddToIni(DelOld45)
  139. #endif
  140. #if(switch92)
  141.     AddToIni(DelOld50)
  142. #endif
  143. DelFromIni(Oldfiles)
  144.  
  145. switch85=Exists(CheckAuto)              ;check if autoexec.bat exists
  146. #if(switch85)                                ;if so,
  147.     ModifyTextFile(autoexec)        ;remove old DOS TSR it.
  148. #endif
  149.  
  150. CallProc(NetworkCustomize)         ;Update anywhere.bin and get admin options
  151. Delete(OldBaseFiles)               ;remove old pcAW/Win files no longer used
  152. Delete(InstallDLLs)                ;remove install files
  153. MergeRegFile(Reg)                          ;merge reg file
  154. #if(switch91)
  155.     EndRebootOnly(ByeRestart)
  156. #else
  157.     End(ByeNoReboot)
  158. #endif
  159. End()
  160.  
  161. ;-----------------------------------------------------------------------
  162. ; Copy.
  163. ;-----------------------------------------------------------------------
  164. [PCACopy]
  165. CopyMain.BaseFiles, "pcANYWHERE",    0, Y, N, Y
  166.  
  167. [PCACopy:CopyDialog]
  168. caption = "Copying pcANYWHERE Files..."
  169. posx = -50
  170. posy = -50
  171.  
  172. ;-----------------------------------------------------------------------
  173. ; Copy file information for remote-only version
  174. ;-----------------------------------------------------------------------
  175.  
  176. [PCARemoteCopy]
  177. CopyMain.BaseFiles, "pcANYWHERE - %ldK ",    2000, Y, N, Y
  178.  
  179. [PCARemoteCopy:CopyDialog]
  180. caption = "Copying pcANYWHERE Files..."
  181. posx = -50
  182. posy = -50
  183.  
  184. ;-----------------------------------------------------------------------
  185. ; Copy file information for host-only version
  186. ;-----------------------------------------------------------------------
  187.  
  188. [PCAHostCopy]
  189. CopyMain.BaseFiles, "pcANYWHERE - %ldK ",    2000, Y, N, Y
  190.  
  191. [PCAHostCopy:CopyDialog]
  192. caption = "Copying pcANYWHERE Files..."
  193. posx = -50
  194. posy = -50
  195.  
  196. ;----------------------------------------------------------------------------------
  197. ;[AdvoDefault]
  198. ;posx = 20
  199. ;posy = 20
  200. ;text = AdvoText
  201.  
  202. ;[AdvoText]
  203. ;"Please fill out your registration"
  204. ;"form to be sure to get information"
  205. ;"about product updates."
  206. ;""
  207.  
  208. ;-----------------------------------------------------------------------
  209. ; Groups.
  210. ;-----------------------------------------------------------------------
  211. [groups]
  212. "pcAnywhere",       winaw.grp, DELETE
  213.  
  214. [pcAnywhere]
  215. "pcAnywhere for Windows",  winaw.exe,        BaseFiles
  216. "Remove pcAnywhere",       "install.exe /u", BaseFiles
  217. "Release Notes",        readme.txt, BaseFiles
  218.  
  219. [ByeNoReboot]
  220. caption = "pcANYWHERE -- Install Complete"
  221. "This concludes the installation of pcANYWHERE for Windows."
  222. " "
  223. "Please review the README.TXT file for last minute changes and corrections to the documentation."
  224. " "
  225. "Select one of the exit options."
  226.  
  227. [ByeRestart]
  228. caption = "pcANYWHERE -- Install Complete"
  229. "This concludes the installation of pcANYWHERE for Windows."
  230. " "
  231. "Please review the README.TXT file for last minute changes and corrections to the documentation."
  232. " "
  233.  
  234. [InformAboutB